package com.baizhi.shane.RedisTest;

import com.baizhi.shane.ShaneApplication;
import com.baizhi.shane.sys.manager.RedisManager;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)//以Spring启动类的方式运行测试类
@SpringBootTest(classes= ShaneApplication.class)//测试启动类入口，这里填写自己的
@Slf4j
public class RedisTest1 {

	@Autowired
	private RedisManager redisManager;
    @Test//测试方法入口注解
    public void testJunit(){
        redisManager.set("testByWbz","nihao");
        String testByWbz = (String) redisManager.get("testByWbz");
        log.info(testByWbz+"lalala");
    }
}
